import http from '@/server'

/** 分页查询 */
export async function getIpList(data: any) {
  return http.request({
    url: '/ip/search',
    method: 'post',
    headers: {
      'Content-Type': 'application/json'
    },
    data
  })
}
/** 信息查询 */
export async function getIpInfo(data: any) {
  return http.request({
    url: '/ip/info',
    method: 'post',
    headers: {
      'Content-Type': 'application/json'
    },
    data
  })
}
/** 修改 */
export async function updateIpInfo(data: any) {
  return http.request({
    url: '/ip/update',
    method: 'post',
    headers: {
      'Content-Type': 'application/json'
    },
    data
  })
}
/** 修改 */
export async function delIp(data: any) {
  return http.request({
    url: '/ip/del',
    method: 'post',
    headers: {
      'Content-Type': 'application/json'
    },
    data
  })
}
/** 新增 */
export async function addIp(data: any) {
  return http.request({
    url: '/ip/add',
    method: 'post',
    headers: {
      'Content-Type': 'application/json'
    },
    data
  })
}